package com.dd.census.mapper;

import com.dd.census.entity.Device;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * Mapper层接口
 * Staff1Mapper
 * @author whn
 * @date 2020/11/26
 */
@Mapper
public interface DeviceMapper {

    /**
     * [新增]
     **/
    int insert(Device device);

    /**
     * [更新]
     **/
    int updateDevice(Device device);

    /**
     * [主键查询]
     **/
    Device selectByKey(String id);

    /**
     * [查询所有设备]
     **/
    List<Device> selectAlldecive();

    /**
     * [总量查询]
     **/
    int total(Device device);

    /**
     * [分页条件查询]
     **/
    List<Device> selectPage (@Param("device") Device device);

    /**
     * [删除]
     **/
    int delete(Device device);
}